#	@(#)Makefile	5.10 (Berkeley) 6/24/90

SRCS=	addbytes.c addch.c addstr.c box.c clear.c clrtobot.c clrtoeol.c \
	cr_put.c cr_tty.c curses.c delch.c deleteln.c delwin.c endwin.c \
	erase.c fullname.c getch.c getstr.c idlok.c id_subwins.c initscr.c \
	insch.c insertln.c longname.c move.c mvprintw.c mvscanw.c mvwin.c \
	newwin.c overlay.c overwrite.c printw.c putchar.c refresh.c scanw.c \
	scroll.c toucholap.c standout.c touchwin.c tstp.c unctrl.c


OBJS=$(SRCS:.c=.o)

CC=gcc
CFLAGS=-O -I. -DSVR4 -DBSD_COMP
#CFLAGS=-O -I. -DUSE_SGTTY		# for 4.[23]BSD
#CFLAGS=-O -I. -DUSE_TERMIOS		# for 4.4BSD (and Linux?)
#CFLAGS=-O -I. -DSVR4 -DUSE_TERMIO	# for SVR3
#CFLAGS=-O -I. -DSVR4 -DUSE_TERMIOS	# for SVR4
RANLIB=echo

all: libcurses.a

libcurses.a: $(OBJS)
	ar ruc libcurses.a $(OBJS)
	$(RANLIB) libcurses.a

install: libcurses.a
	cp libcurses.a ..
	cp curses.h ..

clean:
	rm -f *.o libcurses.a
